package com.sky.mapper;

import com.sky.entity.Dish;
import com.sky.entity.DishFlavor;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DishflavorMapper {

    void save(List<DishFlavor> flavors);

    @Delete("delete from dish_flavor where dish_id in (${ids})")
    void deleteByDishId(String ids);

    @Select("select * from dish_flavor where dish_id=#{l}")
    List<DishFlavor> selectbyId(long l);

    void update(DishFlavor flavors);
}
